package com.jhgk.jhcee.app.controller;

import com.github.pagehelper.PageInfo;
import com.jhgk.jhcee.app.domain.model.MSchoolProvinceYearSubjectRecruiteModel;
import com.jhgk.jhcee.common.resultful.BasisResultful;
import com.jhgk.jhcee.app.service.MSchoolProvinceYearSubjectRecruiteService;
import com.jhgk.jhcee.common.resultful.PageResultful;
import com.jhgk.jhcee.jhgk.model.MSchoolProvinceYearSubjectRecruite;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;
import javax.validation.constraints.NotBlank;

/**
 * @author: xiezhongping
 * @description:
 * @date: 2021/8/9 10:47.
 */
@RestController
@RequestMapping("/schoolAdmissionPlan")
@Api(value = "院校招生计划",tags = {"院校招生计划"})
public class MSchoolProvinceYearSubjectRecruiteController {

    @Resource(name = "MSchoolProvinceYearSubjectRecruiteServiceImpl")
    MSchoolProvinceYearSubjectRecruiteService mSchoolProvinceYearSubjectRecruiteService;

    @PostMapping("/searchAllPage")
    @ApiOperation("分页查询")
    public PageResultful<PageInfo<MSchoolProvinceYearSubjectRecruite>> searchAllPage(@RequestBody @Validated MSchoolProvinceYearSubjectRecruiteModel model) {
        return mSchoolProvinceYearSubjectRecruiteService.searchAllPage(model);
    }

}
